import java.util.Scanner;

/**
 * @author zhangmin
 * @create 2022-03-16 21:30
 */
public class InAndOut {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int a,b;
            a = in.nextInt();
            b = in.nextInt();
            System.out.println(a+b);
        }


        int n = in.nextInt();
        for(int i = 0; i < n; i++) {
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(a + b);
        }

        Scanner cin=new Scanner(System.in);
        int nn=cin.nextInt();
        //在读了nextInt后需要先读一下nextLine，之后再获得的nextLine才不为空，否则会一直读当前行的空值
        cin.nextLine();

    }
}
